package com.example.rabbitmq.example.springboot;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class HelloConsumer {

    @RabbitListener(queues = "myQueue")
    public void service(String message){
        System.out.println(message);
    }
}
